<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="uiTags" prefix="ui"%>

<script type="text/javascript">
	function codeEdit(){
		submitForm("formtable", "code/codeEdit", "closeCurrentTab()");
	}
</script>
<ui:body>
	<div class="easyui-layout" style="width: 100%;height: 100%;" fit="true">
		<div data-options="region:'north',border:false" style="height: 140px">
			<ui:formtable id="formtable">
				<ui:textinput id="code.syscodeid" defaultvalue="${code.syscodeid}" hidden="true"/>
				<ui:dropdown id="code.dmbh" defaultselect="${code.dmbh}" label="代码编号" required="true" dsCode="dmbh"></ui:dropdown>
				<ui:textinput id="code.code" label="code" defaultvalue="${code.code}"  dataOptions="required:true"/>
				<ui:textinput id="code.text" label="text" defaultvalue="${code.text}" dataOptions="required:true"/>
				<ui:nextline/>
				<ui:numberinput id="code.sx" label="顺序" precision="0" defaultvalue="${code.sx}" dataOptions="required:true"/>				
			</ui:formtable>
		</div>

		<div data-options="region:'south',border:true"
			style="text-align: right;overflow: hidden;">
			<ui:button onclick="codeEdit()" icon="icon-ok" value="修改"  />
			<ui:button onclick="closeCurrentTab()" icon="icon-ok" value="关闭" />
		</div>
	</div>
</ui:body>
